const dufualtData = {
  address:{}
}
const reducer = (state = dufualtData,action)=>{
  if(action.type === 'get_city'){
    const newState = JSON.parse(JSON.stringify(state))
    newState.address = action.value
    return newState
  }
  if(action.type === 'change_city'){
    const newState = JSON.parse(JSON.stringify(state))
    newState.address = action.value
    return newState
  }
  return state
}
export default reducer;